﻿@model Event

@{
    string altGlobal = GlobalConstant.AltGlobal();;
}

<div class="iEvent">
    <a href="@Url.Action("Details", "Event", new { categoryNameId = Model.Category.NameId, eventNameId = Model.NameId })">
        <img src="@Model.ImageUrl" title="@Model.Name" alt="@Model.Name @altGlobal" />
    </a>
    <p class="name">@Model.Name</p>
    <p class="deadline">@(String.Format("Kết thúc vào {0:d/M} lúc {0:h:mm tt}", Model.EndDate))</p>
</div>